copying data from one file to another in python